# -*- coding: utf8 -*-

"""
Base worker
"""

from threading import Thread, Event

class Worker(Thread):

    my_query_name = None
    stop_event = None
    
    def __init__( self, app ):
        Thread.__init__( self )
        self.stop_event = Event()
        self.app = app
        pass
    
    def stop(self):
        self.stop_event.set()
        return
    
    pass

